package com.hjj.springboot.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.List;

@TableName("t_recipe")
@Data
public class Recipe {

    @ExcelProperty("食谱编号")
    @ColumnWidth(20)
    private Integer id;

    @ExcelProperty("食谱名称")
    @ColumnWidth(20)
    private String name;

    @ExcelIgnore
    private String image;

    @ExcelProperty("制作步骤")
    @ColumnWidth(60)
    private String steps;

    @ExcelIgnore
    @TableField(exist = false , select = false)
    private List<RecipeDetail> recipeDetailList;
}
